<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广告列表</title>
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<import type='js' file="js.main" />
</head>

<body>
<div class="main-frame">
	<div class="position">华人码 > 广告列表</div>
	<div class="table-list">
	 <table width="100%" border="1" cellspacing="0" cellpadding="0" class="indextable">
		    <tr class="th-bg">
		      <th width="4%">ID</th>
		      <th width="12%">广告名称</th>
		      <th width="16%">广告图片</th>
		      <th width="16%">广告链接</th>
		      <th width="12%">时效时间</th>
		      <th width="6%">推送位置</th>
		      <th width="5%">是否推送</th>
		      <th width="5%">操作</th>
	        </tr>
	        <volist name='ad_list' id="v">
		    <tr class="tr-line">
		      <td>{$v.id}</td>
		      <td style="text-align:left; padding-left:6px;">{$v.ad_name}</td>
		      <td><img src="{$v.ad_img}" height="50" /></td>
		      <td style="text-align:left; padding-left:6px;">{$v.ad_link}</td>
		      <td>开始时间：{$v.ad_pushstarttime}<br>结束时间：{$v.ad_pushendtime}</td>
		      <td>
		      	<if condition="$v.ad_type eq 1">底部</if>
		      	<if condition="$v.ad_type eq 2">居中弹出</if>
		      </td>
		      <td style="color:#ff5454; font-weight:bold;">
				<if condition="$v.ad_push eq 1"><img src="/Public/images/adok.png" height="15" /></if>
			  </td>
		      <td><a href="{:U('Ad/adedit',array('id'=>$v['id']))}">编辑</a></td>
	        </tr>
	        </volist>
      </table>
    </div>

</div>

</body>
</html>
